<?
include_once '../include/admin_processes.php';
$Admin_Process = new Admin_Process;
$Admin_Process->check_status($_SERVER['SCRIPT_NAME']);
$edit_user = $Admin_Process->edit_user($_POST, $_POST['edit']);
$row = $Admin_Process->edit_request($_POST['edit']);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>AA Crash Report</title>
<link href="../include/style.css" rel="stylesheet" type="text/css">
<body>
<form id="form1" name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']."?userid=".$_GET['userid']; ?>">
<h1>Edit User Details: <? echo $_GET['userid']; ?></h1>
<div class="red"><?php  echo $edit_user; ?></div>

<div class="label">First Name :</div>
<input name="first_name" type="text" class="field" id="first_name2" value="<? echo $row['first_name']; ?>"/>

<div class="label">Last Name :</div>
<input name="last_name" type="text" class="field" id="last_name" value="<? echo $row['last_name']; ?>" />

<div class="label">Email Address :</div>
<input name="email_address" type="text" class="field" id="email_address" value="<? echo $row['email_address']; ?>" />

<div class="label">Information  </div>
<input name="info" type="text" class="field" id="info" value="<? echo $row['info']; ?>"/>

<div class="label">Username :</div>
<input name="username" type="text" class="field" id="username" value="<? echo $row['username']; ?>" />

<div class="right">
<input name="userid" type="hidden" id="userid" value="<? echo $row['userid']; ?>" />
<input name="edit" type="submit" class="textfield" value="Save Changes" />
</div>

</form>
